home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam35 / makefile.unx < prev    next >
Makefile  |  1995-09-27  |  385b  |  34 lines

  1.  
  2. CC = gcc
  3.  
  4.  
  5. BINDIR = ../../bin
  6. LIBDIR = ../../lib
  7. INCDIR = ../../include
  8.  
  9.  
  10. #DEBUG = -g
  11. #DEBUG = -O
  12.  
  13. CFLAGS = -I$(INCDIR)
  14. GFLAGS = -I$(INCDIR) -O -w
  15.  
  16. TARGET = main
  17.  
  18. CFILES = main.c
  19.  
  20. OBJS = $(CFILES:.c=.o) 
  21.  
  22.  
  23. .c.o:
  24.     $(CC) $(CFLAGS) $(DEBUG) -c $<
  25.  
  26.  
  27. $(TARGET) : $(OBJS)
  28.     $(CC) $(DEBUG) -o $(TARGET) $(OBJS) $(LIBDIR)/dynace.a -lm
  29.  
  30.  
  31. clean:
  32.     -rm -f *.obj *.exe generics.* $(TARGET) *.o *~
  33.  
  34.